const path = require("path");
// 可以从文件路径中得到文件路径的路径部分
// path.basename()

const fpath = '/a/b/c/lisen.html'
const fullname = path.basename(fpath)
console.log(fullname);

const fileName = path.basename(fpath,'.html')
console.log(fileName);